<?php
if($this->vars['data_revisor']['pages'] > 1){
	$controller = strip_tags($_GET['controller']);
	if($this->vars['page'] > 1){
		echo("<<&nbsp;<a href=\"index.php?controller=" .$controller. "&action=listar&page=" .($this->vars['page'] - 1). "\">anterior</a>&nbsp;");
	}
	$i = 1;
	for($i; $i <= $this->vars['data_revisor']['pages']; $i++){
		if($i == $this->vars['page']){
			echo($i . "&nbsp;");
		}
		else{
			echo("<a href=\"index.php?controller=" .$controller. "&action=listar&page=" .($i). "\">" .($i). "</a>&nbsp;");
		}
	}
	if($this->vars['page'] < $this->vars['data_revisor']['pages']){
		echo("<a href=\"index.php?controller=" .$controller. "&action=listar&page=" .($this->vars['page'] + 1). "\">siguiente</a>&nbsp;>>");
	}
}
?>